package com.great.medical.goods.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsItemUpdateRequest {

    @ApiModelProperty(value = "协议商品id")
    @NotNull
    private Long protocolGoodsId;

    @ApiModelProperty(value = "开启状态 1:启用,0:禁用")
    private Integer status;

    @ApiModelProperty(value = "商品明细行")
    @NotNull
    private List<Items> itemsList;


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Items {
        @ApiModelProperty(value = "颜色")
        private String color;

        @ApiModelProperty(value = "价格")
        private BigDecimal price;

        @ApiModelProperty(value = "涨跌价格")
        private BigDecimal upDownPrice;

        @ApiModelProperty(value = "供求关系 1-大量要 2-需求少")
        private Integer supplyDemand;

        @ApiModelProperty(value = "开启状态 1:启用,0:禁用")
        private Integer status;
    }

}


